package com.wyix.error;

/**
 * @author wangdx
 * @since 2025/8/1
 */
public class BusinessException extends RuntimeException {
    private String code;
    private String message;

    public BusinessException(String code, String message) {
        super(message);
        this.code = code;
        this.message = message;
    }

    public BusinessException(String fileNotFound, String message, Exception e) {
        super(message, e);
        this.code = fileNotFound;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
